home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / ripem / attacks next >
Encoding:
Text File  |  1993-03-31  |  9.2 KB  |  183 lines

  1. Newsgroups: alt.security.ripem,sci.crypt,comp.security.misc,alt.security,comp.mail.misc,alt.answers,comp.answers,news.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!darwin.sura.net!wupost!uwm.edu!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!silver.ucs.indiana.edu!mvanheyn
  3. From: Marc VanHeyningen <mvanheyn@cs.indiana.edu>
  4. Subject: RIPEM Frequently Noted Vulnerabilities
  5. Content-Type: text/x-usenet-FAQ; version=1.0; title="RIPEM Attacks"
  6. Message-ID: <C4qoH8.CHE@usenet.ucs.indiana.edu>
  7. Followup-To: alt.security.ripem
  8. Originator: mvanheyn@silver.ucs.indiana.edu
  9. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  10. Supersedes: <C3JvK9.Ey1@usenet.ucs.indiana.edu>
  11. Nntp-Posting-Host: silver.ucs.indiana.edu
  12. Organization: Computer Science, Indiana University
  13. Mime-Version: 1.0
  14. Date: Wed, 31 Mar 1993 05:55:55 GMT
  15. Approved: news-answers-request@MIT.EDU
  16. Expires: Thu, 20 May 1993 00:00:00 GMT
  17. Lines: 163
  18. Xref: senator-bedfellow.mit.edu alt.security.ripem:214 sci.crypt:14801 comp.security.misc:3212 alt.security:9721 comp.mail.misc:12187 alt.answers:133 comp.answers:354 news.answers:7117
  19.  
  20. Archive-name: ripem/attacks
  21. Last-update: 31 Mar 93 21:00:00 -0500
  22.  
  23. SOME POSSIBLE ATTACKS ON RIPEM
  24. ------------------------------
  25.  
  26. This is a living list of potential weaknesses to keep your eyes open
  27. for when using RIPEM for secure electronic mail.  It does not go into
  28. great detail, and is almost certainly not exhaustive.  Obviously, many
  29. of the weaknesses are weaknesses of cryptographically secured mail in
  30. general, and will pertain to secure mail programs other than RIPEM.
  31. It is maintained by Marc VanHeyningen <mvanheyn@cs.indiana.edu>.  It
  32. is posted monthly to a variety of news groups; followups pertaining
  33. specifically to RIPEM should go to alt.security.ripem.
  34.  
  35. CRYPTANALYSIS ATTACKS
  36. ---------------------
  37.  
  38. - Breaking RSA would allow an attacker to find out your private key,
  39.   in which case he could read any mail encrypted to you and sign
  40.   messages with your private key.
  41.  
  42.   RSA is generally believed to be resistant to all standard
  43.   cryptanalytic techniques.  Even a standard key (about 516 bits with
  44.   RIPEM) is long enough to render this impractical, barring a
  45.   huge investment in hardware or a breakthrough in factoring.
  46.  
  47. - Breaking DES would allow an attacker to read any given message,
  48.   since the message itself is encrypted with DES.  It would not allow
  49.   an attacker to claim to be you.
  50.  
  51.   DES has only 56 bits in its key, and thus could conceivably be
  52.   compromised by brute force with sufficient hardware, but few agencies
  53.   have such money to devote to simply read one message.  Since each
  54.   message has a different DES key, the work for each message would
  55.   remain high.
  56.  
  57. KEY MANAGEMENT ATTACKS
  58. ----------------------
  59.  
  60. - Stealing your private key would allow the same benefits as breaking
  61.   RSA.  To safeguard it, it is encrypted with a DES key which is derived
  62.   from a passphrase you type in.  However, if an attacker can get a copy
  63.   of your private keyfile and your passphrase (by snooping network
  64.   packets, tapping lines, or whatever) he could break the whole scheme.
  65.  
  66.   The main risk is that of transferring either the passphrase or the
  67.   private key file across an untrusted link.  So don't do that.  Run 
  68.   RIPEM on a trusted machine, preferably one sitting right in front of
  69.   you.  Ideally, your own machine in your own home (or maybe office)
  70.   which nobody else has physical access to.
  71.  
  72. - Fooling you into accepting a bogus public key for someone else could 
  73.   allow an opponent to deceive you into sending secret messages to him
  74.   rather than to the real recipient.  If the enemy can fool your
  75.   intended recipient as well, he could re-encrypt the messages with
  76.   the other bogus public key and pass them along.
  77.  
  78.   It is important to get the proper public keys of other people.
  79.   The most common mechanism for this is finger; assuming the opponent
  80.   has not compromised routers or daemons or such, finger can be 
  81.   given a fair amount of trust.  The strongest method of key
  82.   authentication is to exchange keys in person; however, this is
  83.   not always practical.  Having other people "vouch for you" by
  84.   signing a statement containing your key is possible, although 
  85.   RIPEM doesn't have features for doing this as automatically as
  86.   PGP.  RIPEM does generate and check MD5 fingerprints of public keys
  87.   in the key files; they may be exchanged via a separate channel for
  88.   authentication.
  89.  
  90. PLAYBACK ATTACKS
  91. ----------------
  92.  
  93. - Even if an opponent cannot break the cryptography, an opponent could
  94.   still cause difficulties.  For example, suppose you send a message
  95.   with MIC-ONLY (a PEM mode which does not provide disclosure protection)
  96.   to Alice which says "OK, let's do that." Your opponent intercepts
  97.   it, and now resends it to Bob, who now has a message which is
  98.   authenticated as from you telling him to do that.  Of course, he may
  99.   interpret it in an entirely different context.  Or your opponent
  100.   could transmit the same message to the same recipient much later,
  101.   figuring it would be seen differently at a later time.  Or the
  102.   opponent could change the Originator-Name: to himself, register 
  103.   your public key as his, and send a message hoping the recipient
  104.   will send him return mail indicating (perhaps even quoting!) the
  105.   unknown message.
  106.  
  107.   To defeat playback attacks, the plaintext of each message should 
  108.   include some indication of the sender and recipient, and a unique
  109.   identifier (typically the date).  A good front-end script for RIPEM
  110.   should do this automatically (IMHO).  As a recipient, you should be
  111.   sure that the Originator-Name: header and the sender indicated within
  112.   the plaintext are the same, that you really are a recipient, and that
  113.   the message is not an old one.  Some this also can and should be
  114.   automated.  The author of this FAQ has made a modest attempt at
  115.   automating the process of generating and checking encapsulated
  116.   headers; the programs are included in the standard distribution in
  117.   the utils directory.
  118.  
  119. LOCAL ATTACKS
  120. -------------
  121.  
  122. - Clearly, the security of RIPEM cannot be greater than the security of
  123.   the machine where the encryption is performed.  For example, under
  124.   UNIX, a super-user could manage to get at your encrypted mail,
  125.   although it would take some planning and effort to do something like
  126.   replace the RIPEM executable with a Trojan horse or to get a copy of
  127.   the plaintext, depending how it's stored.
  128.  
  129.   In addition, the link between you and the machine running RIPEM is
  130.   an extension of that.  If you decrypt with RIPEM on a remote machine
  131.   which you are connected to via network (or, worse yet, modem), an
  132.   eavesdropper could see the plaintext (and probably also your
  133.   passphrase.)
  134.  
  135.   RIPEM should only be executed on systems you trust, obviously.  In
  136.   the extreme case, RIPEM should only be used on your own machine,
  137.   which you have total control over and which nobody else has access
  138.   to, which has only carefully examined software known to be free of
  139.   viruses, and so on.  However, there's a very real trade-off between
  140.   convenience and security here.
  141.  
  142.   A more moderately cautious user might use RIPEM on a UNIX workstation
  143.   where other people have access (even root access), but increase
  144.   security by keeping private keys and the (statically linked, of
  145.   course) executable on a floppy disk.
  146.  
  147.   Some people will keep RIPEM on a multi-user system, but when dialing
  148.   in over an insecure line, they will download the message to their
  149.   own system and perform the RIPEM decryption there.  However, the
  150.   security provided by such a mechanism is somewhat illusory; since
  151.   you presumably type your cleartext password to log in, you've just
  152.   given away the store, since the attacker can now log in as you and
  153.   install traps in your account to steal your private key next time
  154.   you use it from a less insecure line.  This will likely remain the
  155.   situation as long as most systems use the rather quaint mechanism of
  156.   cleartext password authentication.
  157.  
  158.   I find it nice to put a brief statement of how carefully I manage my
  159.   security arrangement in my .plan next to my public key, so that
  160.   potential correspondents can be aware what level of precautions are
  161.   in place.  Some people use two keys, a short one which is not
  162.   carefully managed for ordinary use and a longer one which is treated
  163.   with greater care for critical correspondence.
  164.  
  165. UNTRUSTED PARTNER ATTACKS
  166. -------------------------
  167.  
  168. - RIPEM's encryption will ensure that only a person with the private key
  169.   corresponding to the public key used to encrypt the data may read the
  170.   traffic.  However, once someone with that key gets the message, she
  171.   may always make whatever kind of transformations she wishes.  There 
  172.   exist no cryptographic barriers to a recipient, say, taking an
  173.   ENCRYPTED message and converting it to a MIC-ONLY message, signed by
  174.   you and readable by anyone, although RIPEM does not provide this
  175.   functionality.  Indeed, the latest PEM draft I have seen specifically
  176.   states that such transformations should be possible to allow
  177.   forwarding functions to work.
  178.  
  179.   Including the recipients in the plaintext, as mentioned above, will
  180.   make it possible for recipients of a redistributed message to be aware
  181.   of its original nature.  Naturally, the security of the cryptography
  182.   can never be greater than the security of the people using it.
  183.